var express = require('express');
var router = express.Router();
var mongo = require("./db")
/* GET users listing. */
router.get('/', function (req, res, next) {
  res.send('respond with a resource');
});



// 获取所有全能数据中对象表中 所有数据的接口
router.get("/list", function (req, res) {
  mongo("find", "object", {}, function (data) {
    // data 查到的所有数据
    res.send(data)
  })
})



module.exports = router;
